<div class="bg-light lter b-b wrapper-md ng-scope">
    <h4 class="m-n font-thin">修改订单金额</h4>
    <button onClick="javascript: history.go(-1);" class="btn-back btn btn-dark btn-sm btn-rounded">
        返回
    </button>
</div>
<div class="wrapper-md">
    <div class="panel panel-default">
        <div class="panel-heading m-n">
            修改订单金额
        </div>
        <div class="panel-body form-validation" ng-controller="ordersPriceChangeCtrl">
            <form class="form-horizontal" name="change">
                <div class="form-group">
                    <label class="col-sm-2 control-label">当前金额</label>
                    <div class="col-sm-5">
                        <input type="text" value="{{orders.payMoney}}"  class="form-control" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">更改金额</label>
                    <div class="col-sm-5">
                        <input type="text" ng-model="orders.changedPayMoney" name="money" ng-pattern="/^(?:[1-9]\d*|0)(?:\.\d{1,2})?$/" class="form-control">
                    </div>
                    <div id="moneyError"  ng-if="change.money.$touched">
                        <label class="pull-left text-left text-danger h6 l-h wrapper-sm"  ng-if="change.money.$error.pattern">请填写正确的金额</label>
                    </div>
                </div>
                <div class="form-group" ng-if="orders.changedPayMoney!=null">
                    <label class="col-sm-2 control-label">差价</label>
                    <div class="col-sm-5">
                        <input type="text"  value="{{(orders.changedPayMoney-orders.payMoney) |number:2}}" class="form-control" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">手机号</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control" placeholder="请输入正确的手机号" name="phone" ng-model="orders.userPhone" ng-pattern="/^1[34578]\d{9}$/" required>
                        <div id="error" ng-if="change.phone.$touched">
                            <label class="pull-left text-left text-danger h6 l-h"  ng-if="change.phone.$error.required">手机号为必填项</label>
                            <label class="pull-left text-left text-danger h6 l-h"  ng-if="change.phone.$error.pattern">请填写正确的手机号</label>
                            <label class="pull-left text-left text-danger h6 l-h"  ng-if="status==650">该手机用户无法更改金额</label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">手机验证码</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control" placeholder="请输入正确的手机号验证码" name="code"  ng-model="orders.phoneCode" required>
                        <div ng-if="change.code.$touched">
                            <label class="pull-left text-left text-danger h6 l-h"  ng-if="change.code.$error.required">验证码为必填项</label>
                            <label class="pull-left text-left text-danger h6 l-h"  ng-if="status==647">验证码有误,请重新输入</label>
                            <label class="pull-left text-left text-danger h6 l-h"  ng-if="status==408">验证码已过期,请重新获取</label>
                        </div>
                    </div>
                    <div class="col-md-3">
                        <div class="btn btn-success" ng-click="check()" ng-bind="description" ng-disabled="canClick"></div>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-2">
                        <button type="submit" class="btn btn-success" ng-disabled="change.$invalid" ng-click="confirmChange()">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>




